# 定义类
class Student:
    category='people'
    def __init__(self, name, sex):  # 初始化
        self.name = name
        self.sex = sex
    def hello(self):
        print(f'大家好，我是{self.name}')

zhangsan=Student('zhangsan','nan')
zhangsan.hello()
